package tt;
import java.util.Calendar;
import java.util.Date;

import javax.persistence.Id;

public class Appuser {
	@Id Long id;

	private String name;
	
	private String apellido1;

	private String apellido2;
	
	private String owner;

	private Date created;

	private String tipo;

	private String pass;

	@SuppressWarnings("unused")
	private Appuser() 
	{
		
	}
	
	public Appuser(String owner,String name,String apellido1,String apellido2,String tipo,String pass){
		this.setOwner(owner);
		Calendar calendar = Calendar.getInstance();
		this.setCreated(calendar.getTime());
		this.setName(name);
		this.setApellido1(apellido1);
		this.setApellido2(apellido2);
		this.setTipo(tipo);
		this.setPass(pass);
	}

	public Long getId() {
		return this.id;
	}

	public void setOwner(String owner) {
		this.owner = owner;
	}

	public String getOwner() {
		return owner;
	}

	public void setCreated(Date created) {
		this.created = created;
	}

	public Date getCreated() {
		return created;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getName() {
		return name;
	}

	public void setPass(String pass) {
		this.pass = pass;
	}

	public String getPass() {
		return pass;
	}

	public void setApellido2(String apellido2) {
		this.apellido2 = apellido2;
	}

	public String getApellido2() {
		return apellido2;
	}

	public void setApellido1(String apellido1) {
		this.apellido1 = apellido1;
	}

	public String getApellido1() {
		return apellido1;
	}

	public void setTipo(String tipo) {
		this.tipo = tipo;
	}

	public String getTipo() {
		return tipo;
	}

}
